#ifndef QTEXTREADER_H
#define QTEXTREADER_H

#include "QWString.h"

class CQFile;
class CQTextResource
{
public:
	IMPORT_C CQTextResource();
	IMPORT_C ~CQTextResource();
	IMPORT_C QBOOL Load(CQWString& path);
	IMPORT_C QBOOL GetTextByUID(QUINT32 nID, CQWString& wstrText);
private:
	QVOID Release();
	QBOOL ReadMTRFileBody(CQFile& MTRFile);
	QBOOL ReadMTRFileHead(CQFile& MTRFile);
	QBOOL ReadSingleItem(CQFile& MTRFile);
private:
	QUINT32 ALL_STR_COUNT;
	QSHORT m_Flag;
	CQWString* m_pTxtArray;
};

#endif //QTEXTREADER_H